<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/update/main" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <!-- 	<div id="breadcrumb">
		<php>if(isset($res)) {</php>
		<p class="fl">{$Think.lang.editor}{$Think.lang.node}</p>
		<php>} else {</php>
		<p class="fl">{$Think.lang.addNode}</p>
		<php>}</php>
	</div> -->
  <div class="page">
    <form action="{:URL('admin/User/editorNode')}" method="POST">
      <div class="section">
        <div class="page-hd">
          <h1>
            <php>if(isset($res)) {</php>{$Think.lang.editor}{$Think.lang.node}
            <php>} else {</php>{$Think.lang.addNode}
            <php>}</php>
          </h1>
        </div>
        <div class="tabitem">
          <div class="section-bd">
            <table>
              <input type="hidden" id="vpid" value="{$pid}" />
              <input type="hidden" name="id" id="vid" value="{$res.id}" />
              <tbody class="r1 r3">
                <tr>
                  <td>
                    <label>{$Think.lang.nodeName}：</label>
                  </td>
                  <td>
                    <input class="input-text" type="text" name="name" id="name" value="{$res.name}" />
                    <span class="remark" id="vaname"></span>
                    <span class="remark">{$Think.lang.hint}</span>
                  </td>
                </tr>
              </tbody>
              <tbody>
                <tr>
                  <td>
                    <label>{$Think.lang.nodeTitle}：</label>
                  </td>
                  <td>
                    <input class="input-text" type="text" name="title" id="title" value="{$res.title}" />
                    <span class="remark" id="vtitle"></span>
                    <span class="remark">{$Think.lang.nodeNameSuch}</span>
                  </td>
                </tr>
              </tbody>
              <tbody>
                <tr>
                  <td>
                    <label>{$Think.lang.nodeStatus}：</label>
                  </td>
                  <td>
                    <input type="radio" name="status" id="status" value="1" <neq name="res['status']" value="0">checked='checked'</neq>>{$Think.lang.enable}
                    <input type="radio" name="status" id="status" value="0" <eq name="res['status']" value="0">checked='checked'</eq>>{$Think.lang.disable}
                    <span class="remark">{$Think.lang.ifTheNode}</span>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>

        <div class="section-ft">
          <div class="actions">
            <php>if(isset($res)) {</php>
            <input class="btn2" style="*width: 145px;" type="submit" value="{$Think.lang.editor}{$Think.lang.node}" />
            <php>} else {</php>
            <input class="btn2" style="*width: 145px;" type="button" value="{$Think.lang.addNode}" onclick="add()" />
            <php>}</php>
            <input class="btn2" type="button" value="{$Think.lang.cancel}" onclick="javascript:window.location.href='{:URL('admin/User/nodeManage')}'" />
          </div>
        </div>
      </div>
    </form>
  </div>
</body>

</html>
